/**
 * 对应管理员端统计分析模块
 */

package xiangmu.schoolpaper.service.impl.system;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xiangmu.schoolpaper.mapper.DictTemplateTypeMapper;
import xiangmu.schoolpaper.mapper.UserMapper;
import xiangmu.schoolpaper.mapper.system.GetMajorsMapper;
import xiangmu.schoolpaper.mapper.system.GetTeachersMapper;
import xiangmu.schoolpaper.mapper.teacher.TemplateTypesMapper;
import xiangmu.schoolpaper.pojo.entity.DictTemplateType;
import xiangmu.schoolpaper.pojo.entity.User;
import xiangmu.schoolpaper.service.system.GetMajorsService;
import xiangmu.schoolpaper.service.system.GetTeachersService;

import java.util.List;
import java.util.stream.Collectors;

@Service
public class GetMajorsServiceImpl implements GetMajorsService {

    @Autowired
    private GetMajorsMapper getMajorsMapper;

    // 查询某一毕业年份下所有未删除的专业
    @Override
    public List<String> getAllMajors(Integer year) {

        // 只要专业名称
        return getMajorsMapper.getMajorsTable(year);


    }


}
